<!DOCTYPE html>
<html ng-app="notesApp">
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body ng-controller="MainCtrl as ctrl">
		<input type="text" ng-model="ctrl.username" />
		<input type="text" ng-model="ctrl.password" />
		<button ng-click="ctrl.change()">Change Value</button>
		<button ng-click="ctrl.submit()">Submit</button>
	</body>
	<script src="js/angular.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		angular.module('notesApp', [])
		.controller('MainCtrl', [function(){
			var self = this;
			self.change = function(){
				self.username = 'changed';
				self.password = 'password';
			};
			self.submit = function(){
				console.log(self.username, self.password);
			};
		}]);
	</script>
</html>
